<!DOCTYPE HTML>
<html lang="">
  
  <head>
    <meta charset="UTF-8">
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>/Home/Index/index · GitBook</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="description" content="">
    <meta name="generator" content="GitBook 3.2.2">
    <link rel="stylesheet" href="../gitbook/style.css">
    <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
    <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
    <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
    <meta name="HandheldFriendly" content="true" />
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
    <link rel="prev" href="memcached.html" /></head>
    <script src="../gitbook/jquery-2.1.4.min.js"></script>
    <script src="../gitbook/ft.js"></script>

  <body>
    <div class="book">
      <div class="book-body">
        <div class="body-inner">
          
          <div class="page-wrapper" tabindex="-1" role="main">
            <div class="page-inner">
              <div id="book-search-results">
                <div class="search-noresults">
                  <section class="normal markdown-section">
                
                    <h1 id="studentgetuploadid">index </h1>
                    <h3 >描述:</h3>
                    <p>首页接口</p>
                    <h3 >url地址:</h3>
                    <p>/Home/Index/index</p>
                    <h3 >请求方式</h3>
                    <p>&#x3010;POST&#x3011;</p>
                    <h3 >入参</h3>
                    <table>
                      <thead>
                        <tr>
                          <th>参数名称</th>
                          <th style="text-align:center">参数类型</th>
                          <th>是否必传</th>
                          <th style="text-align:right">参数说明</th></tr>
                      </thead>
                      <tbody>
                                              <tr>
                          <td>a</td>
                          <td style="text-align:center">int</td>
                          <td>是</td>
                          <td style="text-align:right">用户编号</td></tr>
                        <tr>
                                                <tr>
                          <td>b</td>
                          <td style="text-align:center">int</td>
                          <td>是</td>
                          <td style="text-align:right">用户名称</td></tr>
                        <tr>
                                                  
                      </tbody>
                    </table>
                    <h3 >出参</h3>
                    <table id="dataTable-read">
                      <thead>
                      <tr>
                        <th>参数名称</th>
                        <th style="text-align:center">参数类型</th>
                        <th>说明</th>
                        <th style="text-align:right">备注</th></tr>
                      </thead>
                      <tbody>
                                            <tr>
                        <td>c</td>
                        <td style="text-align:center">String</td>
                        <td>用户性别</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>a</td>
                        <td style="text-align:center">Int</td>
                        <td>用户编号</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>list</td>
                        <td style="text-align:center">Array</td>
                        <td>列表</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>_c</td>
                        <td style="text-align:center">Int</td>
                        <td>昵称</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>_d</td>
                        <td style="text-align:center">object</td>
                        <td>用户对象</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>__f</td>
                        <td style="text-align:center">object</td>
                        <td>对象f</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>___g</td>
                        <td style="text-align:center">object</td>
                        <td>对象g</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>____f</td>
                        <td style="text-align:center">int</td>
                        <td>对象f</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>id</td>
                        <td style="text-align:center">int</td>
                        <td>数据</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>data</td>
                        <td style="text-align:center">Array</td>
                        <td>列表</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>_c</td>
                        <td style="text-align:center">Int</td>
                        <td>昵称</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>_d</td>
                        <td style="text-align:center">object</td>
                        <td>用户对象</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>__f</td>
                        <td style="text-align:center">object</td>
                        <td>对象f</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>___g</td>
                        <td style="text-align:center">object</td>
                        <td>对象g</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>____g</td>
                        <td style="text-align:center">object</td>
                        <td>对象g</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>_____g</td>
                        <td style="text-align:center">int</td>
                        <td>对象g</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>_____g</td>
                        <td style="text-align:center">object</td>
                        <td>对象g</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            <tr>
                        <td>______k</td>
                        <td style="text-align:center">string</td>
                        <td>对象K</td>
                        <td style="text-align:right"></td>
                      </tr>
                                            </tbody>
                    </table>
                    <script>
                      function getChildNum(str, child){
                        var regex = new RegExp(child, 'g'); // 使用g表示整个字符串都要匹配
                        var result = str.match(regex);
                        return !result ? 0 : result.length;
                      }
                      $('#dataTable-read tr').each(function(key, value){
                        var text = $(this).find('td:first-child').text()
                        var num = getChildNum(text, '_');
                        $(this).addClass('row-'+num)
                        $(this).find('td:first-child').html(
                                text.replace(new Array( num+1 ).join( '_'),
                                        new Array(num+ 1 ).join( '&nbsp;&nbsp;')))

                      })
                    </script>
                    <!--<h3 id="&#x6D4B;&#x8BD5;&#x5730;&#x5740;">测试地址：</h3>-->
                    <!--<p>-->
                      <!--<a href="http://www.baidu.com/" target="_blank">http://www.baidu.com/</a>-->
                    <!--</p>-->
                    <h3 >出参示例:</h3>
                    <pre>


<div id="exampleid">

</div>
<script>
  var example = {
    "c": "string",
    "a": 0,
    "list": [
        {
            "c": 0,
            "d": {
                "f": {
                    "g": {
                        "f": 0
                    }
                }
            }
        }
    ],
    "id": 0,
    "data": [
        {
            "c": 0,
            "d": {
                "f": {
                    "g": {
                        "g": {
                            "g": {
                                "k": "string"
                            }
                        }
                    }
                }
            }
        }
    ]
};
  $("#exampleid").html(formatJson(example));
</script>
                    </pre>
                  </section>
                </div>
                <div class="search-results">
                  <div class="has-results">
                    <h1 class="search-results-title">
                      <span class='search-results-count'></span>results matching "
                      <span class='search-query'></span>"</h1>
                    <ul class="search-results-list"></ul>
                  </div>
                  <div class="no-results">
                    <h1 class="search-results-title">No results matching "
                      <span class='search-query'></span>"</h1></div>
                </div>
              </div>
            </div>
          </div>
        </div>
       
      </div>
     
    </div>
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
    <script src="../gitbook/gitbook-plugin-search/search.js"></script>
    <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
    <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
    <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
    <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
    <style>
      #dataTable-read .row-6{background: #fee9e7}
      #dataTable-read  .row-5{background-color: #d2fdd9}
      #dataTable-read  .row-4{background-color: #f6f4f3}
      #dataTable-read  .row-3{background-color: #e7fbff;}
      #dataTable-read   .row-2{background: #fcfdf0}
      #dataTable-read .row-1{background: #efe7ff}


    </style>
  </body>

</html>